/**
 * 
 */
package com.vision.sales.cm.serv.rpc;

import java.util.List;
import java.util.Set;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.vision.core.cm.exception.RpcException;
import com.vision.core.cm.serv.rpc.AbstractService;
import com.vision.sales.cm.db.data.Salesman;
import com.vision.sales.cm.db.data.SalesmanProduct;

/**
 * @author Mark
 *
 */
@RemoteServiceRelativePath("salesmen")
public interface SalesmanService extends AbstractService<Salesman> {

	List<Salesman> getSalesmenNameAndIdOnly() throws RpcException;
	
	Set<SalesmanProduct> getSalesmanProducts(long salesmanId) throws RpcException;
	
	void saveCommissionRates(List<SalesmanProduct> salesmanProducts) throws RpcException;
	
}
